Skip to content

Conversation

@ajaykrishnan23
Copy link

This example demonstrates how to deploy a high-performance LLM inference server using NVIDIA Triton Inference Server with TensorRT-LLM for optimized GPU inference.

Features:

  • Triton Inference Server with Python backend
  • TensorRT-LLM with PyTorch backend for Llama 3.2 3B Instruct
  • Model Download to Persistent Storage to avoid redundant downloads
  • Configurable sampling parameters (temperature, top_p, max_tokens)

The deployment uses an A10 GPU and exposes Triton's standard HTTP API on port 8000.


input [
{
name: "text_input"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prompt?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only for configuring the shapes and other params. System prompt would have to come directly in the model.py

#!/usr/bin/env python3
"""
Download HuggingFace model to persistent storage.
Only downloads if model doesn't already exist.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you run this with cerebrium run or does it run on deploy?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about this but I'm also not feeling great on reinstalling packages (once through the docker file and once through toml)

"""
responses = []

for request in requests:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look that efficient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants